package com.hst.capacity.infra.convertor;

import com.hst.capacity.domain.model.entity.order.express.ExpressOrderDestroyEntity;
import com.hst.capacity.domain.model.entity.order.intercity.IntercityOrderDestroyEntity;
import com.hst.capacity.domain.model.entity.order.pool.OrderPoolEntity;
import com.hst.capacity.domain.model.entity.order.specialcar.SpCarOrderDestroyEntity;
import com.hst.capacity.domain.model.entity.order.specialcar.SpCarOrderEntity;
import com.hst.capacity.domain.model.entity.order.specialcar.SpCarOrderHistoryEntity;
import com.hst.capacity.domain.model.request.express.ExOrderDestroyParam;
import com.hst.capacity.domain.model.request.intercity.IcOrderDestroyParam;
import com.hst.capacity.domain.model.request.specialcar.SpOrderDestroyParam;
import com.hst.capacity.domain.model.response.PagingResultVO;
import com.hst.capacity.domain.model.response.specialcar.SpListNewVO;
import com.hst.capacity.domain.model.response.specialcar.SpSearchVO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 *  专车订单模块的POJO属性转换器
 *
 * @author jin
 * */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SpecialConvertor {
    SpecialConvertor INSTANCE = Mappers.getMapper(SpecialConvertor.class);

    PagingResultVO<SpListNewVO> convertNew(PagingResultVO<SpCarOrderEntity> orderEntity);

    PagingResultVO<SpSearchVO> convertSearch(PagingResultVO<SpCarOrderEntity> orderEntity);

    SpCarOrderDestroyEntity convert(SpOrderDestroyParam param);

    SpCarOrderHistoryEntity convert(SpCarOrderEntity orderEntity);

    SpCarOrderHistoryEntity convert(OrderPoolEntity orderEntity);

}
